package org.nemanjaristic.comparators;

import java.util.Comparator;

import com.google.code.facebookapi.schema.User;

public class SortUserByName implements Comparator<User>{

	@Override
	public int compare(User o1, User o2) {
		if(o1 != null && o2 != null && o1.getName() != null)
			o1.getName().compareToIgnoreCase(o2.getName());
		return 0;
	}

}
